#include "widget.h"
#include "ui_widget.h"

#include <QFileDialog>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_pushButton_clicked()
{
    const QString path = QFileDialog::getOpenFileName();

    QFileInfo info(path);
    qDebug() << info.fileName();
    qDebug() << info.suffix();
    qDebug() << info.path();
    qDebug() << info.size();
    qDebug() << info.isFile();
    qDebug() << info.isDir();
}

